package com.yellowcong.action;

import java.util.List;

import com.opensymphony.xwork2.ActionSupport;
import com.yellowcong.service.UserService;
import com.yellowcong.service.entity.User;

/**
*
*作者:yellowcong
*日期:2017/08/30
*時間:13:36:53
*描述:
*/
public class UserAction extends ActionSupport {
 
	private UserService userService ;

	public void setUserService(UserService userService) {
		this.userService = userService;
	}
	
	public  String list() {
		List<User> users = this.userService.list();
		for(User uesr:users) {
			System.out.println(uesr.getUsername());
		}
		return SUCCESS;
	}
}
